# -*- coding:utf-8 -*-
import redis
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
global path,redisurl,localhosturl,redis_passwd,myurl
redisurl = '127.0.0.1'
localhosturl = '127.0.0.1'
redis_passwd = ''
# web.config.debug = True
path = '/home/ubuntu/spider/zrb/zrbspider'
myurl='http://zrb.gotohard.cn/static/'

rdp = redis.ConnectionPool(host=redisurl, port=6379,decode_responses=True)

def getrdc():
    rdc=redis.StrictRedis(connection_pool=rdp)
    return rdc

if __name__=='__main__':

    r=getrdc()
    r.set('namef','ffffff')
    print r.get('namef')